package com.esri.core.internal.tasks.ags;

import com.esri.core.internal.tasks.TaskListener;
import com.esri.core.io.UserCredentials;
import java.io.InputStream;

/* loaded from: classes.dex */
public class ad extends com.esri.core.internal.tasks.d<InputStream> {
    private static final long serialVersionUID = 1;

    public ad(al alVar, String str, String str2, UserCredentials userCredentials) {
        this(alVar, str, str2, userCredentials, null);
    }

    public ad(al alVar, String str, String str2, UserCredentials userCredentials, TaskListener<InputStream> taskListener) {
        super(alVar, a(str, str2), userCredentials, taskListener);
    }

    private static final String a(String str, String str2) {
        return str + "/content/items/" + str2 + "/data";
    }

    @Override // com.esri.core.internal.tasks.a
    /* renamed from: a */
    public InputStream execute() throws Exception {
        return com.esri.core.internal.io.handler.a.b(this.serviceURL, this.actionInput.generateRequestParams(), getServiceCredentials());
    }
}
